<!doctype html>
<html>
<head>
    {% block head %}
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>{% block title %}{% endblock %} - 后台管理</title>
        <link rel="stylesheet" href="{{ url_for('static', filename='css/zui/zui.min.css') }}">
        <link rel="stylesheet" href="{{ url_for('static', filename='css/zui/zui.min.css') }}">
        <link rel="stylesheet" href="{{ url_for('static', filename='css/zui/zui-theme.css') }}">
    {% endblock %}
</head>
<body>
<header id="header" class="bg-blue">
    <div class="navbar navbar-inverse navbar-fixed-top" id="navbar" role="banner" style="">
        <div class="container">
            <div class="navbar-header">
                <a href="{{ url_for('.admin_index') }}" class="navbar-brand"><span class="path-zui-36"><i
                        class="path-1"></i><i class="path-2"></i></span>
                    <span class="brand-title">后台管理</span>
                    <i data-toggle="tooltip" id="compactTogger" data-placement="bottom" class="icon icon-home"
                       data-original-title="" title=""></i></a>
            </div>
            <nav class="collapse navbar-collapse zui-navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a title="账号" href="#" target="_blank"><i
                            class="icon icon-github"></i><span>Jian</span></a></li>
                </ul>
            </nav>
        </div>
    </div>
</header>
{% block content %}
    {% block nav %}
        <nav class="menu" data-ride="menu" style="width: 200px">
            <a href="{{ url_for('.admin_fabu') }}" class="btn btn-primary"><i class="icon icon-edit"></i> 发布</a>
            <a href="{{ url_for('index.index_index') }}" class="btn"><i class="icon icon-cloud-upload"></i>网站前台</a>
            <ul class="nav nav-primary">
                <li><a href="javascript:;"><i class="icon icon-th"></i> 菜单</a></li>
                <li><a href="{{ url_for('.admin_column') }}"><i class="icon icon-user"></i>栏目管理</a></li>
                <li class="nav-parent">
                    <a href="{{ url_for('.admin_article') }}"><i class="icon icon-time"></i>文章管理</a>
                    <ul class="nav">
                        {% for i in data.column %}
                            {% if i.fid == 0 %}
                                <li><a href="{{ url_for('.admin_article',id = i.id) }}">{{ i.title }}</a></li>
                                {% for n in data.column %}
                                    {% if n.fid == i.id %}
                                        <li><a href="{{ url_for('.admin_article',id = n.id) }}">┇┅ {{ n.title }}</a>
                                        </li>
                                    {% endif %}
                                {% endfor %}
                            {% endif %}
                        {% endfor %}
                    </ul>
                </li>
                <li><a href="{{ url_for('.admin_youlian') }}"><i class="icon icon-user"></i>友情链接</a></li>
                <li class="active show nav-parent">
                    <a href="javascript:;"><i class="icon icon-tasks"></i>操作</a>
                    <ul class="nav">
                        <li class="active"><a href="{{ url_for('.admin_logout') }}"><i
                                class="icon icon-play-sign"></i>注销登录</a></li>
                    </ul>
                </li>
            </ul>
        </nav>
    {% endblock %}
{% endblock %}
<footer contenteditable="true"
        style="position:fixed; left:0px; bottom:0px; width:100%; height:50px; background-color:#607D8B; z-index:9999;padding: 10px 20px 10px 20px">
    <p class="pull-right text-info">继承，是幸福的延续；重载，是幸福的重生。</p>
    <p class="text-important">2017.10.25</p>
</footer>
<!-- jQuery (ZUI中的Javascript组件依赖于jQuery) -->
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<!-- ZUI Javascript组件 -->
<script src="{{ url_for('static', filename='js/zui/zui.min.js') }}"></script>
</body>
</html>